import request from '@/utils/request'

//列表
export function listtechnician(query) {
  return request({
    url: '/system/technician/list',
    method: 'get',
    params: query
  })
}
//详情
export function gettechnician(id) {
  return request({
    url: '/system/technician/' + id,
    method: 'get'
  })
}

//新增
export function addtechnician(data) {
  return request({
    url: '/system/technician',
    method: 'post',
    data: data
  })
}

//离职
export function resign(data) {
  return request({
    url: '/system/technician/resign',
    method: 'post',
    data: data
  })
}

//入职
export function entry(data) {
  return request({
    url: '/system/technician/entry',
    method: 'post',
    data: data
  })
}







//修改
export function updatetechnician(data) {
  return request({
    url: '/system/technician',
    method: 'put',
    data: data
  })
}
//删除
export function delitetechnician(id) {
  return request({
    url: '/system/technician/' + id,
    method: 'delete'
  })
}

export function listMemberRegion(query) {
  return request({
    url: '/system/region/addList',
    method: 'get',
    params: query
  })
}
export function listMemberStore(query) {
  return request({
    url: '/system/store/pullDown',
    method: 'get',
    params: query
  })
}

export function listpullDownlist(query) {
  return request({
    url: '/system/item/type/pullDown/list',
    method: 'get',
    params: query
  })
}
export function liststorelist(query) {
  return request({
    url: '/system/item/region/pullDown/list',
    method: 'get',
    params: query
  })
}

//添加项目保存
export function addListInTech(data) {
  return request({
    url: '/system/item/technician/addListInTech',
    method: 'post',
    data: data
  })
}

//查询分配与未分配项目
export function storeItemDetails(params) {
  return request({
    url: '/system/item/store/itemDetails',
    method: 'get',
    params
  })
}